//
//  BHCommonNavigationBar.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/6/9.
//

import UIKit

class BHCommonNavigationBar: UIView {

    @IBOutlet weak var backBtn: UIButton!
    @IBOutlet weak var title_label: UILabel!
    
    @IBOutlet weak var rightBtn: UIButton!
    
    @IBOutlet weak var more_btn: UIButton!
    @IBOutlet weak var right_height: NSLayoutConstraint!
    
    @IBOutlet weak var contain_backView: UIView!
    
    var whiteStyle: Bool = false {
        didSet {
            if whiteStyle {
                self.backBtn.setImage(UIImage.init(named: "bh_com_white_back"), for: .normal)
                self.title_label.textColor = .white
            }
        }
    }
    
    
    static func loadFromXib() -> BHCommonNavigationBar {
        let viewArray = Bundle.main.loadNibNamed("BHCommonNavigationBar", owner: nil, options: nil)
        let view: BHCommonNavigationBar = viewArray![0] as! BHCommonNavigationBar
        return view
    }
    
}
